#include "vclosebutton.h"
#include "vlaunchwidget.h";

VCloseButton::VCloseButton(QWidget* parent)
    : QPushButton(parent)
{
    move(245, 0);
    setText("X");
    resize(35, 25);
    setStyleSheet(R"(
        VCloseButton
        {
            border:none;   
        }
        VCloseButton:hover
        { 
            background-color: #FB7373; 
        }
        VCloseButton:pressed
        {
            background-color: #E14848; 
        }
     )");
    connect(this, &VCloseButton::released, parent, &VLaunchWidget::close);
}
VCloseButton::~VCloseButton()
{}